package com.jic.product.mapper;

import com.jic.product.entity.CategoryPropertyValue;
import com.jic.product.manage.response.CategoryPropertyValueResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类目属性值表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Mapper
public interface CategoryPropertyValueMapper {

    long insert(CategoryPropertyValue categoryPropertyValue);

    long delete(Long id);

    long update(CategoryPropertyValue categoryPropertyValue);

    CategoryPropertyValue queryByPrimaryKey(Long id);

    List<CategoryPropertyValue> query(CategoryPropertyValue categoryPropertyValue);

    List<CategoryPropertyValue> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, CategoryPropertyValue categoryPropertyValue);

    long queryPageCount(CategoryPropertyValue categoryPropertyValue);

    List<CategoryPropertyValueResponse> getCategoryPropertyValueList(CategoryPropertyValue categoryPropertyValue);
}